<?php

namespace App\Kuafu\Banner\Controller\Internal;

use App\Kuafu\Banner\Service\BannerService;
use App\Kuafu\Base\Controller\BaseController;
use Illuminate\Http\JsonResponse;

class BannerController extends BaseController
{
    /**
     * 获得banner图
     *
     * @return JsonResponse
     */
    public function index(): JsonResponse
    {
        return $this->success(['list' => BannerService::getBannerByApp()]);
    }
}
